Scroll to the item. (#306839, Jonathan Blandford)
authorMatthias Clasen <mclasen@redhat.com>
Wed, 8 Jun 2005 20:47:11 +0000 (20:47 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 8 Jun 2005 20:47:11 +0000 (20:47 +0000)
2005-06-08  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
item.  (#306839, Jonathan Blandford)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtkiconview.c

index 9af287c0ae4ce07f3f606aad60423e49c5b8dc00..251b65b72bb849f031f64d0a0fb669eb3998cb07 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-06-08  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
+       item.  (#306839, Jonathan Blandford)
+
        * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
        negative before appending the index, to avoid double error
        message.  (#306393, Morten Welinder)
index 9af287c0ae4ce07f3f606aad60423e49c5b8dc00..251b65b72bb849f031f64d0a0fb669eb3998cb07 100644 (file)
@@ -1,5 +1,8 @@
 2005-06-08  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
+       item.  (#306839, Jonathan Blandford)
+
        * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
        negative before appending the index, to avoid double error
        message.  (#306393, Morten Welinder)
index 9af287c0ae4ce07f3f606aad60423e49c5b8dc00..251b65b72bb849f031f64d0a0fb669eb3998cb07 100644 (file)
@@ -1,5 +1,8 @@
 2005-06-08  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
+       item.  (#306839, Jonathan Blandford)
+
        * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
        negative before appending the index, to avoid double error
        message.  (#306393, Morten Welinder)
index d2758313f83df6eecfee7c9ebbdb337ad02e886e..4eae3915d37ce2eb977b0ff3bebef35c8a06eb2b 100644 (file)
@@ -1733,6 +1733,8 @@ gtk_icon_view_set_cursor (GtkIconView     *icon_view,
     }
 
   gtk_icon_view_set_cursor_item (icon_view, item, cell_pos);
+  gtk_icon_view_scroll_to_item (icon_view, item);
+
   if (start_editing)
     gtk_icon_view_start_editing (icon_view, item, info, NULL);
 }